package com.wk.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class stringutils {
    public static String refilename(String filename) {
        int divide = filename.lastIndexOf(".");//获取该文件的后缀名
        String suffix = filename.substring(divide);
        return new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()) + new Random().nextInt(100) + suffix;
    }
}
